.class Lcom/netease/newsreader/activity/CollectActivity$2;
.super Ljava/lang/Object;
.source "CollectActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/CollectActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/CollectActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/CollectActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/CollectActivity$2;->this$0:Lcom/netease/newsreader/activity/CollectActivity;

    .line 220
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 12
    .parameter
    .parameter "arg1"
    .parameter "position"
    .parameter "arg3"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 224
    .local p1, arg0:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    iget-object v10, p0, Lcom/netease/newsreader/activity/CollectActivity$2;->this$0:Lcom/netease/newsreader/activity/CollectActivity;

    invoke-static {v10}, Lcom/netease/newsreader/activity/CollectActivity;->access$1(Lcom/netease/newsreader/activity/CollectActivity;)Ljava/util/List;

    move-result-object v10

    invoke-interface {v10, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/util/Map;

    .line 225
    .local v7, m:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    new-instance v6, Landroid/content/Intent;

    iget-object v10, p0, Lcom/netease/newsreader/activity/CollectActivity$2;->this$0:Lcom/netease/newsreader/activity/CollectActivity;

    const-class v11, Lcom/netease/newsreader/activity/ImageSwitcherActivity;

    invoke-direct {v6, v10, v11}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 226
    .local v6, intent:Landroid/content/Intent;
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 227
    .local v0, bundle:Landroid/os/Bundle;
    const-string v10, "collect_id"

    invoke-interface {v7, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 229
    .local v3, id:Ljava/lang/String;
    const-string v9, ""

    .line 230
    .local v9, setid:Ljava/lang/String;
    const-string v5, ""

    .line 232
    .local v5, imgsum:Ljava/lang/String;
    :try_start_0
    new-instance v8, Lorg/json/JSONObject;

    invoke-direct {v8, v3}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 233
    .local v8, obj:Lorg/json/JSONObject;
    if-eqz v8, :cond_0

    .line 234
    const-string v10, "setId"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 235
    const-string v10, "num"

    invoke-virtual {v8, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v5

    .line 241
    .end local v8           #obj:Lorg/json/JSONObject;
    :cond_0
    :goto_0
    const-string v10, "collect_title"

    invoke-interface {v7, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    if-nez v10, :cond_1

    const-string v4, ""

    .line 242
    .local v4, imgTitle:Ljava/lang/String;
    :goto_1
    const-string v10, "collect_path"

    invoke-interface {v7, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    if-nez v10, :cond_2

    const-string v1, ""

    .line 244
    .local v1, clientcover:Ljava/lang/String;
    :goto_2
    const-string v10, "setid"

    invoke-virtual {v0, v10, v9}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 245
    const-string v10, "imgsum"

    invoke-virtual {v0, v10, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 246
    const-string v10, "imgTitle"

    invoke-virtual {v0, v10, v4}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 247
    const-string v10, "clientcover"

    invoke-virtual {v0, v10, v1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 248
    invoke-virtual {v6, v0}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    .line 249
    iget-object v10, p0, Lcom/netease/newsreader/activity/CollectActivity$2;->this$0:Lcom/netease/newsreader/activity/CollectActivity;

    invoke-virtual {v10, v6}, Lcom/netease/newsreader/activity/CollectActivity;->startActivity(Landroid/content/Intent;)V

    .line 250
    return-void

    .line 237
    .end local v1           #clientcover:Ljava/lang/String;
    .end local v4           #imgTitle:Ljava/lang/String;
    :catch_0
    move-exception v2

    .line 238
    .local v2, e:Lorg/json/JSONException;
    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 241
    .end local v2           #e:Lorg/json/JSONException;
    :cond_1
    const-string v10, "collect_title"

    invoke-interface {v7, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_1

    .line 242
    .restart local v4       #imgTitle:Ljava/lang/String;
    :cond_2
    const-string v10, "collect_path"

    invoke-interface {v7, v10}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_2
.end method
